package test;

import java.io.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class FileHandling{
	private File file;
	private Scanner scanner;
	private ArrayList<String> array;
	
	public FileHandling(String filePath) throws FileNotFoundException{
		file = new File(filePath);
		scanner = new Scanner(file);	
		array= new ArrayList<String>();
		createArray();
	}
	
	public void createArray(){
		while(scanner.hasNext()){
			String str = scanner.next();	
			array.add(str);
		}
	}
	
	public ArrayList<String> getArray(){
		return array;
	}
	
}